package org.example.myleet.p692;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new String[]{"i", "love"}, solution.topKFrequent(new String[]{"i", "love", "leetcode", "i", "love", "coding"}, 2)));
        Assert.isTrue(Assert.isPass(new String[]{"the", "is", "sunny", "day"}, solution.topKFrequent(new String[]{"the", "day", "is", "sunny", "the", "the", "the", "sunny", "is", "is"}, 4)));
        Assert.isTrue(Assert.isPass(new String[]{"the"}, solution.topKFrequent(new String[]{"the"}, 1)));
        Assert.isTrue(Assert.isPass(new String[]{"a"}, solution.topKFrequent(new String[]{"aaa", "aa", "a"}, 1)));
    }
}
